package com.changgou.goods.dao;

import com.changgou.goods.pojo.Brand;
import org.apache.ibatis.annotations.Select;
import tk.mybatis.mapper.common.Mapper;

import java.util.List;


/**
 * @author 1
 * @data 2022/1/8
 */
public interface BrandMapper extends Mapper<Brand> {


    @Select(value = "select tb.* from tb_brand tb,tb_category_brand tcb where tcb.category_id=#{id} and tb.id=tcb.brand_id")
    List<Brand> findBrandList(Integer id);
    /*@Select(value = "select * from tb_brand")
    public List<Brand> findAll();*/
}
